package org.dsun.mvc.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class TestAction {
	
	private String name;
	private String url;
	private HttpServletRequest request;
	private HttpServletResponse response;
	

	public void test(){
		
		this.name="gaodong";
		url=request.getServletPath();
		request.setAttribute("age", 12);
	}

	public void good(){
		this.name="donga";
		url=request.getServletPath();
		request.setAttribute("age", 24);
		request.setAttribute("URL", url);
		request.setAttribute("name", name);
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public HttpServletRequest getRequest() {
		return request;
	}

	public void setRequest(HttpServletRequest request) {
		this.request = request;
	}

	public HttpServletResponse getResponse() {
		return response;
	}

	public void setResponse(HttpServletResponse response) {
		this.response = response;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
}
